var gift = new Array(
	3010717,
	3010718,
	3010730,
	3010739,
	3012018,
	3010737,
	3010779,
	3010804,
	3010810,
	3010812,
	3010815,
	3010837,
	3010854,
	3010795,
	3010794,
	3010714,
	3010732,
	3010831,
	3010830,
	3010829,
	3010828,
	3010827,
	3010826,
	3010825,
	3010824,
	3010813,
	3010806,
	3010754,
	3010751,
	3012024,
	3012025,
	3010896,
	3010897,
	3010906,
	3010948,
	3010894,
	3010747,
	3010748,
	3010966,
	3010862,
	3010863,
	3010878,
	3010946,
	3010965,
	3010976,
	3010979,
	3010980,
	3010955,
	3014008,
	3015006,
	3010822,
	3015037,
	3015008,
	3015012,
	3015090,
	3015132,
	3015097,
	3015093,
	3010756,
	3010850,
	3015059,
	3015009,
	3010845,
	3015058,
	3015060,
	3010968,
	3015106,
	3014009,
	3015089,
	3015135,
	3015138,
	3015100,
	3015109,
	3015112,
	3015114,
	3015117,
	3015168,
	3015174,
	3015175,
	3015144,
	3015142,
	3015178,
	3015197,
	3015129,
	3015210,
	3015234,
	3015259,
	3015195,
	3015264,
	3015386,
	3015374,
	3015403,
	3015385,
	3015399,
	3015398,
	3015397,
	3015396,
	3015393,
	3013009,
	3015372,
	3015312,
	3015269,
	3015266,
	3010729,
	3015303,
	3015317,
	3015316,
	3012030,
	3015260,
	3015177,
	3010004,
	3010005,
	3010007,
	3010008,
	3010009,
	3010010,
	3010013,
	3010014,
	3010016,
	3010017,
	3010018,
	3010849,
	3010983,
	3010999,
	3010021,
	3010025,
	3010028,
	3010029,
	3010030,
	3010031,
	3010032,
	3010033,
	3010036,
	3010037,
	3010038,
	3010039,
	3010041,
	3010043,
	3010044,
	3010048,
	3010049,
	3010050,
	3010051,
	3010052,
	3010053,
	3010054,
	3010055,
	3010061,
	3010060,
	3010063,
	3010064,
	3010065,
	3010068,
	3010069,
	3010071,
	3010075,
	3010078,
	3010079,
	3010080,
	3010081,
	3010082,
	3010083,
	3010084,
	3010085,
	3010092,
	3010093,
	3010094,
	3010095,
	3010096,
	3010098,
	3010099,
	3010100,
	3010106,
	3010107,
	3010108,
	3010109,
	3010110,
	3010111,
	3010112,
	3010113,
	3010117,
	3010118,
	3010120,
	3010123,
	3010126,
	3010127,
	3010128,
	3010135,
	3010136,
	3010138,
	3010139,
	3010140,
	3010151,
	3010152,
	3010156,
	3010161,
	3010162,
	3010163,
	3010166,
	3010167,
	3010168,
	3010169,
	3010170,
	3010171,
	3010172,
	3010177,
	3010179,
	3010183,
	3010185,
	3010188,
	3010189,
	3010191,
	3010194,
	3010196,
	3010208,
	3010209,
	3010210,
	3010212,
	3010217,
	3010218,
	3010219,
	3010220,
	3010221,
	3010222,
	3010223,
	3010224,
	3010226,
	3010279,
	3010280,
	3010281,
	3010282,
	3010283,
	3010288,
	3010292,
	3010303,
	3010304,
	3010305,
	3010306,
	3010308,
	3010313,
	3010314,
	3010315,
	3010316,
	3010317,
	3010318,
	3010361,
	3010362,
	3010170,
	3010374,
	3010402,
	3010423,
	3010505,
	3010516,
	3010523,
	3010524,
	3010531,
	3010542,
	3010545,
	3010556,
	3010557,
	3010572,
	3010592,
	3010596,
	3010597,
	3010598,
	3010600,
	3010613,
	3010624,
	3010637,
	3010638,
	3010639,
	3010643,
	3010651,
	3010652,
	3010653,
	3010654,
	3010655,
	3010656
);

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode <= 0) {
		im.dispose();
		return;
	} else {
		if (mode == 1) {
			status++;
		} else {
			status--;
		}
	}

	var item = im.gainGachaponItem(gift[Math.floor(Math.random() * gift.length)], 1, "印第安的金饰宝物袋");
	if (item != -1) {
		im.remove(1);
		//im.gainItem(4310030, 10);
		im.sendOk("你获得了 #b#t" + item + "##k 1 个");
	} else {
		im.sendOk("请你确认在背包的装备，消耗，其他窗口中是否有一格以上的空间。");
	}
	im.safeDispose();
}